/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.giant.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author taticay
 */
@Entity
@Table(name = "w_claim_status")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "WClaimStatus.findAll", query = "SELECT w FROM WClaimStatus w"),
    @NamedQuery(name = "WClaimStatus.findByIdClaimStatus", query = "SELECT w FROM WClaimStatus w WHERE w.idClaimStatus = :idClaimStatus"),
    @NamedQuery(name = "WClaimStatus.findByDescription", query = "SELECT w FROM WClaimStatus w WHERE w.description = :description")})
public class WClaimStatus implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id_claim_status")
    private Integer idClaimStatus;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 30)
    @Column(name = "description")
    private String description;

    public WClaimStatus() {
    }

    public WClaimStatus(Integer idClaimStatus) {
        this.idClaimStatus = idClaimStatus;
    }

    public WClaimStatus(Integer idClaimStatus, String description) {
        this.idClaimStatus = idClaimStatus;
        this.description = description;
    }

    public Integer getIdClaimStatus() {
        return idClaimStatus;
    }

    public void setIdClaimStatus(Integer idClaimStatus) {
        this.idClaimStatus = idClaimStatus;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idClaimStatus != null ? idClaimStatus.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof WClaimStatus)) {
            return false;
        }
        WClaimStatus other = (WClaimStatus) object;
        if ((this.idClaimStatus == null && other.idClaimStatus != null) || (this.idClaimStatus != null && !this.idClaimStatus.equals(other.idClaimStatus))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.giant.entities.WClaimStatus[ idClaimStatus=" + idClaimStatus + " ]";
    }
    
}
